import { configureStore,combineReducers  } from '@reduxjs/toolkit'
import TabReducer from './reducer/tab'
import { persistStore, persistReducer } from "redux-persist";
import storageSession from "redux-persist/lib/storage/session";
// const persistConfig = {
//     key: "root",
//     // storage:storage,//local storage 存储模式
//     storage: storageSession, //session storage 会话模式存储模式存储
//   };
//   const persistedReducer = persistReducer(
//     persistConfig,
//     combineReducers({ tab: TabReducer })
//   );
export default configureStore({
    reducer: {
        tab: TabReducer
    }
})
// export const store = configureStore({
//     reducer: persistedReducer,
//     middleware: (getDefaultMiddleware) =>
//       getDefaultMiddleware({
//         serializableCheck: false,
//       }),
//   });
//   export const persistor = persistStore(store);